<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>商品管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all"/>
    <link rel="stylesheet" href="__CSS__/admin.css" media="all">
    <style type="text/css">

        /* tooltip */
        #tooltip {
            position: absolute;
            border: 1px solid #ccc;
            background: #333;
            padding: 2px;
            display: none;
            color: #fff;
        }
    </style>
</head>
<body style="padding:10px;">
<div class="tplay-body-div">
    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li class="layui-this">商品分类管理</li>
            <li><a href="{:url('admin/goods/mp_add')}" class="a_menu">添加分类</a></li>
        </ul>
    </div>
    <table class="layui-table" lay-size="sm">
        <thead>
        <tr>
            <th>ID</th>
            <th>分类名称</th>
            <th>缩略图</th>
            <th>排序</th>
            <th>上传时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name='a' id='vo'}
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.title}</td>
            <td><a href="{$vo.path}" class="tooltip"><img src="{$vo.path}" width="60" height="30"></a></td>
            <td>{$vo.sort}</td>
            <td>{$vo.up_time}</td>
            <td class="operation-menu">
                <div class="layui-btn-group">
                  <a href="{:url('admin/goods/mp_update',['id'=>$vo.id])}"
                       class="layui-btn layui-btn-xs a_menu layui-btn-primary" id="{$vo.id}"
                       style="margin-right: 0;font-size:12px;"><i class="layui-icon"></i></a>
                    <a href="{:url('admin/goods/mp_delete',['id'=>$vo.id])}"
                       class="layui-btn layui-btn-xs layui-btn-primary delete" id="{$vo.id}"
                       style="margin-right: 0;font-size:12px;"><i class="layui-icon"></i></a>
                </div>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {include file="public/foot"}
</div>
</body>
</html>
